import request from "./request"


//登录
export function login(user,loginMsg,ip){
  return request({
    url:'/login',
    method:'post',
    params:{
      userName:user.userName,
      password:user.passWord,
      captcha:loginMsg.captcha,
      ip
    }
  })
}

//企业注册
export function companyRegister(registerMsg,id) {
  return request({
    url:'company/register/'+id,
    method:'post',
    data:registerMsg

  })
}

//学校注册
export function universityRegister(registerMsg,id) {
  return request({
    url:'university/register/'+id,
    method:'post',
    data: registerMsg
  })
}

//学校取消注册
export function upCancel(ip){
  return request({
    url:'university/cancel',
    params:{
      ip
    }
  })
}

//企业取消注册
export function upCancelC(ip){
  return request({
    url:'company/cancel',
    params:{
      ip
    }
  })
}